WARNING: This program does not work the way we want it to! It has a logic error and we need to fix it!

A return stops a while loop while it's running. In this capacity, it's similar to the keyword break.

  • Click Run and enter a term that's included in the definition_list. See how the program doesn't end?
  • Fix the bug by dragging Return Statement inside the if statement and changing my_var to definition.
  • Click Run now to see a definition! Click Submit and Next when ready to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)